<?php
class Default_Model_DbTable_Search extends Custom_Db_Table_Abstract
{
    public $_name = 'user';
    public $_primary = 'id'; 
    
    public function getSearchProfile($fname,$lname)
    {
        $select  = $this->select()
                   ->from($this->_name)
                   ->order($this->getOrderBy(array('printable_name')))
                   ->where('fname=?',$fname)
                   ->orWhere('lname=?', $lname);
        
         $searchlist = $this->fetchAll($select)->toArray();
        return $searchlist;
        
        
    }
    
}

